<%--
  Created by IntelliJ IDEA.
  User: Root404
  Date: 2022/6/27
  Time: 9:48
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <style>
        a{color: red}
    </style>
</head>
<body>
<%  request.setCharacterEncoding("utf-8");
    Cookie[] cookies = request.getCookies();
    if(cookies!=null){
        for(int i=0;i<cookies.length;i++){
            if(cookies[i]!=null&&cookies[i].getName().equals("name")){
                break;
            }
            if(i==cookies.length-1){
                response.sendRedirect("t1.jsp?feifa=f");
            }
        }
    }
%>
欢迎大佬<%=(String)session.getAttribute("name")+session.getId()%>登录成功
<a href="zhuxiao.jsp">点我注销</a>
<%
    String[] cks = request.getParameterValues("ck");
    if(cks!=null){ for(String xjj : cks){
        out.print(xjj+"<br/>");
    }}

%>

</body>
</html>
